function move(ele, data, cb){
    clearInterval(ele.t);
    ele.t = setInterval(() => {
        let flag = true;
        for(let i in data){
            let now = parseInt(getStyle(ele, i));
            let speed = (data[i] - now) / 8;
            speed = speed<0 ? Math.floor(speed) : Math.ceil(speed);
            ele.style[i] = now + speed + "px";
            if(now !== data[i]){
                flag = false
            }
        }
        if(flag){
            clearInterval(ele.t)
            cb && cb();
        }
    }, 30);
}
function getStyle(ele, attr){
    if(getComputedStyle){
        return getComputedStyle(ele)[attr]
    }else{
        return ele.currentStyle[attr]
    }
}